package com.serviceprovider.business.module.order.model;

//~--- JDK imports ------------------------------------------------------------

import java.util.ArrayList;
import java.util.List;

public enum OrderAttributeType {
    STRING("String"), NUMBER("Number"), DATE("Date"), BOOLEAN("Boolean"), LIST("List");

    private String title;

    OrderAttributeType(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public static List<String> getTitles() {
        OrderAttributeType[] mas    = values();
        List<String>         result = new ArrayList<String>();

        for (OrderAttributeType item : mas) {
            result.add(item.toString());
        }

        return result;
    }
}



